﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCCommon.TradingEnums;

namespace BCDto.Trading.Purchase.GoodsPurchaseCertificate
{
    /// <summary>
    /// 商品采购单记账凭证
    /// </summary>
    public class GoodsPurchaseCertificateRequestDto
    {
        /// <summary>
        /// 商品采购单Id
        /// </summary>		
        [Display(Name = "商品采购单Id")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public long GoodsPurchaseId { get; set; }
        /// <summary>
        /// 记账凭证编号
        /// </summary>		
        [Display(Name = "记账凭证编号")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 6, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string CertificateNo { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>		
        [Display(Name = "支付类型")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public PurchasePaidType PaidType { get; set; }
    }
}

